package com.sc.nft.entity.vo.ecology;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description：孵化方式藏品配置VO
 * @Author：LiGen
 * @Package：com.sc.nft.entity.vo.ecology
 * @Project：sc_metago
 * @name：HatchMethodCollectionVO
 * @Date：2024/6/12 20:26
 * @Filename：HatchMethodCollectionVO
 */
@Data
public class HatchMethodCollectionVO {

    @ApiModelProperty(value = "熔炼方式id")
    private Long methodId;

    @ApiModelProperty(value = "藏品id")
    private Long collectionId;

    @ApiModelProperty(value = "藏品名称")
    private String collectionName;

    @ApiModelProperty(value = "单次消耗数量")
    private Integer expendCount;

    @ApiModelProperty(value = "持有数量")
    private Integer holdCount;


    public static HatchMethodCollectionVO build(HatchPageVO hatchPageVO, Long methodId) {
        HatchMethodCollectionVO hatchMethodCollectionVO = new HatchMethodCollectionVO();
        hatchMethodCollectionVO.setMethodId(methodId);
        hatchMethodCollectionVO.setCollectionId(hatchPageVO.getCollectionId());
        hatchMethodCollectionVO.setCollectionName(hatchPageVO.getCollectionName());
        hatchMethodCollectionVO.setExpendCount(hatchPageVO.getExpendCount());
        hatchMethodCollectionVO.setHoldCount(hatchPageVO.getHoldCount());
        return hatchMethodCollectionVO;
    }
}
